﻿using BCCommon.Enums;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCEntity.Website.User
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public class UserEntity
    {
        /// <summary>
        /// 用户Id
        /// </summary>	
        public long UserId { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>	
        public string Phone { get; set; }

        /// <summary>
        /// 密码
        /// </summary>	
        public string Password { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>	
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 最后登录时间
        /// </summary>	
        public DateTime LastLoginTime { get; set; }

        /// <summary>
        /// 当前登录时间
        /// </summary>	
        public DateTime CurrentlyLoginTime { get; set; }

        /// <summary>
        /// 登录IP地址
        /// </summary>
        public string LogonIp { get; set; }

        /// <summary>
        /// 登录IP转换地址
        /// </summary>
        public string AddressIp { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>	
        public string IdentityCardNo { get; set; }

        /// <summary>
        /// 用户积分
        /// </summary>	
        public int UserIntegrals { get; set; }

        /// <summary>
        /// 头像
        /// </summary>	
        public string Avatar { get; set; }

        /// <summary>
        /// 账号状态
        /// </summary>
        public AccountStatus AccountStatus { get; set; }
        /// <summary>
        /// 唯一码
        /// </summary>
        public string UniqueCode { get; set; }
        /// <summary>
        /// 合伙人Id
        /// </summary>
        public long? PartnerId { get; set; }
        /// <summary>
        /// 合伙人名称
        /// </summary>
        public string PartnerName { get; set; }
        /// <summary>
        /// 验证码
        /// </summary>
        public string PassCode { get; set; }

        /// <summary>
        /// 验证码过期时间
        /// </summary>
        public DateTime? PassExpirationTime { get; set; }

        /// <summary>
        /// 用户账号角色
        /// </summary>
        public string Role { get; set; }
        /// <summary>
        /// 省份ID
        /// </summary> 
        public long ProvinceId { get; set; }
        /// <summary>
        /// 省份编码
        /// </summary>
        public string ProvinceCode { get; set; }
        /// <summary>
        /// 省份名称
        /// </summary>
        public string ProvinceName { get; set; }
        /// <summary>
        /// 市Id
        /// </summary>
        public long CityId { get; set; }
        /// <summary>
        /// 市编码
        /// </summary>
        public string CityCode { get; set; }
        /// <summary>
        /// 市名称
        /// </summary>
        public string CityName { get; set; }
        /// <summary>
        /// 区县Id
        /// </summary>
        public long CountyId { get; set; }
        /// <summary>
        /// 区县编码
        /// </summary>
        public string CountyCode { get; set; }
        /// <summary>
        /// 区县名称
        /// </summary>
        public string CountyName { get; set; }

        /// <summary>
        /// 微信UnionId
        /// </summary>
        public string UnionId { get; set; }

        /// <summary>
        /// VIP用户
        /// </summary>
        public bool IsVip { get; set; }

        /// <summary>
        /// 企业用户
        /// </summary>
        public bool IsEnterprise { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string CompanyName { get; set; }

        /// <summary>
        /// 用户评分
        /// </summary>
        public decimal? EvaluationScore { get; set; }

        /// <summary>
        /// 用户评级
        /// </summary>
        public GradeType UserLevel { get; set; }
        /// <summary>
        /// 是否领取红包
        /// </summary>
        public bool IsReceiveRedPacket { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string RealName { get; set; }
        /// <summary>
        /// 实名认证状态
        /// </summary>
        public string RealNameVerifiesStatus { get; set; }
        /// <summary>
        /// 实名认证拒绝原因
        /// </summary>
        public string RealNameVerifiesRefuse { get; set; }
        /// <summary>
        /// 身份证图片地址
        /// </summary>
        public string IdentityCardPath { get; set; }
        /// <summary>
        /// 身份证背面图片地址
        /// </summary>
        public string IdentityCardBackPath { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? ApproveTime { get; set; }
        /// <summary>
        /// 审核人名称
        /// </summary>
        public string Approver { get; set; }
        /// <summary>
        /// 审核人Id
        /// </summary>
        public long? ApproverId { get; set; }
        /// <summary>
        /// 父级Id
        /// </summary>
        public long ParentId { get; set; }

    }
}
